<?php
namespace app\common\model;

class SysUserModel extends BaseModel
{   
    protected $table = 'next_sys_user';

    //根据账号搜索
    public function searchUsernameAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('username', $value);
        }
    }
}